Skip to main content

Mathematical Functions

Round​

Rounds to the nearest integer:
Syntax:     Round(value)

Example: Round(3.5) → 4
Round(-1.4) → -1

Ceiling​

Rounds up to the nearest integer:
Syntax:     Ceiling(value)

Example: Ceiling(3.01) → 4
Ceiling(-1.99) → -1

Floor​

Rounds down to the nearest integer:
Syntax:     Floor(value)

Example: Floor(3.99) → 3
Floor(-1.01) → -2

Cos/ArcCos​

Cosine and inverse cosine function (in radians):
Syntax:     Cos(angle), ArcCos(value)

Example: Cos(Pi) → -1
Cos(0) → 1
ArcCos(1) → 0
ArcCos(0.5) → Pi/3

Sin/ArcSin​

Sine and inverse sine function (in radians):
Syntax:     Sin(angle), ArcSin(value)

Example: Sin(Pi/2) → 1
Sin(0) → 0
ArcSin(1) → Pi/2
ArcSin(0.5) → Pi/6

Tan/ArcTan​

Tangent and inverse tangent function (in radians):
Syntax:     Tan(angle), ArcTan(value)

Example: Tan(Pi/4) → 1
Tan(0) → 0
ArcTan(1) → Pi/4
ArcTan(-1) → -Pi/4

Log / Ln / Exp​

Logarithmus mit Basis 10 , natürlicher Logarithmus, and e^x:
Syntax:     Log(x), Ln(x), Exp(x)

Beispiel: Log(1000) → 3
Ln(e) → 1
Exp(1) → e
Ln(e^3) → 3
Exp(0) → 1

Sum/Product​

Addiere oder multipliziere Zahlen oder Vektoren:
Syntax:     Sum(...), Product(...)

Beispiel: Sum(1, 2, 3) → 6
Sum({1, 2, 3}) → 6
Product(2, 2, 2) → 8
Product({2, 3, 4}) → 24

Max / Min​

Berechnet die größte oder niedirgste Zahl:
Syntax:     Max(...), Min(...)

Beispiel: Max(4, 2, 9) → 9
Max({7, 3, 8}) → 8
Min(3, -1, 5) → -1
Min({10, 2, 5}) → 2

Mean / Median​

Berechnet den Durchschnitts- oder Mittelwert:
Syntax:     Mean(...), Median(...)

Beispiel: Mean(2, 4, 6) → 4
Mean({10, 20, 30}) → 20
Median(1, 3, 5) → 3
Median({2, 4, 6, 8}) → 5

StdDev​

Bemisst die Datenstreuung:
Syntax:     StdDev(...)

Beispiel: StdDev(1, 2, 3) → 1
StdDev({10, 10, 10}) → 0

Abs​

Berechnet absolute (nicht-negative) Werte:
Syntax:     Abs(x)

Beispiel: Abs(-5) → 5
Abs(0.5) → 0.5

Mod​

Berechnet den Rest nach einer Division:
Syntax:     a mod b or a % b

Beispiel: 10 mod 3 → 1
13 % 5 → 3
6 mod 2 → 0

Square Root​

Berechnet die Quadratwurzel einer Zahl:
Syntax:     Sqrt(x)

Beispiel: Sqrt(9) → 3
Sqrt(2) → 1.414
Sqrt(0) → 0

Pi​

Die Konstante π ≈ 3.14159:
Syntax:     pi

Beispiel: pi → 3.14159
Sin(pi) → 0

e​

Die Konstante e ≈ 2.71828:
Syntax:     e

Beispiel: e → 2.71828
Ln(e) → 1

Logit​

Rechnet Wahrscheinlichkeiten (0–1) zu Log-odds um:
Syntax:     Logit(p)

Beispiel: Logit(0.5) → 0
Logit(0.9) → 2.197
Logit(0.1) → -2.197

Expit​

Rechnet Log-odds zu Wahrscheinlichkeiten (0–1) um:
Syntax:     Expit(x)

Beispiel: Expit(0) → 0.5
Expit(2) → 0.881
Expit(-2) → 0.119